package com.baoming.tool;

import javax.servlet.http.HttpServletRequest;

import com.baoming.domain.Member;

public class MemberTool {
	public static Member getGlobalMember(HttpServletRequest request){
		Member member = (Member) request.getSession().getAttribute("global_member") ; 
		return member ; 
	}
	
	public static String getGlobalMemberId(HttpServletRequest request){ 
		return getGlobalMember(request).getId() ; 
	}
	
}
